package lib.bone.audit.workload.service;

import lib.bone.audit.workload.domain.WorkloadUseLog;
import lib.bone.common.service.BaseService;
import org.springframework.data.domain.Example;

import java.util.List;

public interface WorkloadUseLogService extends BaseService<WorkloadUseLog,String>{

    void saveList(List<WorkloadUseLog> logs);

    List<WorkloadUseLog> findByUserId(Long userId);

    List<WorkloadUseLog> getUseLog(String researchWorkloadId);

    List<WorkloadUseLog> findByUserIdAndCycleId(Long userId,String cycleId);

    void deleteAll(List<WorkloadUseLog> logs);

    /**
     * 样例查询
     * @param example
     * @return
     */
    List<WorkloadUseLog> findByExample(Example<WorkloadUseLog> example);

}
